﻿cmake_minimum_required(VERSION 3.10)

project(DynPage)
set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if(MSVC)
set(CMAKE_EXE_LINKER_FLAGS_DEBUG "/DEBUG:FULL /INCREMENTAL:NO")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /source-charset:utf-8 /execution-charset:utf-8")
add_compile_options(/Zi /EHsc)
add_compile_options(/wd4996)
endif()

add_subdirectory(src)
include_directories(header)

add_executable(DynPage main.cpp)
target_link_libraries(DynPage DynPageLib)